<?php

class MediaModel extends Model
{
    public function incDownload($mediahash)
    {
        $sql = "UPDATE __TABLE__ SET download=download+1 WHERE mediahash=$mediahash";
        $this->query($sql);
    }
}

?>